<?php
/**
 * Created by PhpStorm.
 * User: yellow
 * Date: 2019/4/1
 * Time: 14:57
 */

namespace app\common\model;

use think\Model;

class UserInfo extends Model
{

    public function getStatusAttr($value){
        $statusArr = [1=> '审核中', 2=>'审核通过', 3=>'审核不通过'];
        return $statusArr[$value];
    }

    public function getCreateTimeAttr($value){
        return date('Y-m-d H:i', $value);
    }

}